package com.why.simpleboot.core.server.netty.handler;

import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.FullHttpResponse;

/**
 * @program: why-simpleboot-framework
 * @description:
 * @author: @why
 * @create: 2021-05-22 14:32
 **/
public interface RequestHandler {
    /**
     * 处理
     * @param httpRequest
     * @return
     */
    FullHttpResponse handle(FullHttpRequest httpRequest);

    /**
     *
     * 设置下一个请求处理器
     * @param handler
     */
     void setNextRequestHandler(RequestHandler handler);
}
